import {
    Dimensions
} from 'react-native';
global.ACTION = {
    ADD: 0,         //提交申请
    APPROVE: 1,     //审批
    VIEW: 2,        //查看
}

global.USER = {
    isadmin: false,
    username: ''
}

global.STATUS = {
    APPROVED: '0',  // 已通过
    PENDING: '1',   // 待审核
    REJECTED: '2',  // 未通过
}

global.APPROVAL = {
    APPROVED: 'APPROVED',//"已通过",
    PENDING: 'PENDING',//"待审核",
    REJECTED: 'REJECTED',//"未通过";
}
global.APPROVAL_STRING = {
    "APPROVED": "已通过",
    "PENDING": "待审核",
    "REJECTED": "未通过",
}

global.FILE_TYPE = {
    PDF: 'pdf',
    AUDIO: 'audio',
    WORD: 'word',
    IMAGE: 'image',
    DOCUMENT: 'document',
    VIDEO: 'video',
    OTHER: 'other',

};
global.FILE_TYPE_STRING = {
    'pdf': 'PDF',
    'audio': '音频',
    'word': 'WORD',
    'image': '图片',
    'document': '文档',
    'video': '视频',
    'other': '其他',

};


global.SCREEN = {
    width: Dimensions.get('screen').width,
    height: Dimensions.get('screen').height,
}

module.exports = global;
